package com.sunagy.demand.backend.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * desc：#TODO fill me ！
 * author：三餘無夢生
 * date：2018/4/27
 * time：下午5:29
 */
@Data
@Component
@ConfigurationProperties("aliyun.oss")
@RefreshScope
public class AliOssConfig {
    private String accessKeyId;
    private String accessKeySecret;

    //bucket
    private String bucketName;

    //rootserver
    private String rootserver;

    //endpoint
    private String endpoint;

    //configure
    private String useragent;

    private String proxyhost;

    private Integer proxyport;

    private String proxyusername;

    private String proxypassword;

    private String proxydomain;

    private String proxyworkstation;

    private Integer maxconnections = 50;

    private Integer sockettimeout = 50000;

    private Integer connectiontimeout = 50000;

    private Integer maxerrorretry = 3;
}
